<template>
  <div class="index">
    <div class="index-content">
      <div>
        <header class="index-header">
          <div class="top-banner">
            <div class="address-box"><span class="iconfont icon-dizhi"></span>科学大道长椿路升龙又一城</div>
            <div class="weather">
              <span class="temperature">36°</span>
              <span class="text">晴转多云</span>
              <img class="weather-icon">
            </div>
            <div class="search-box" ><input type="text" placeholder="搜索商家、商品" readonly></div>
          </div>
        </header>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'index'
  }

</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .index {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .index-content {
    height: 100%;
    overflow: hidden;
  }

  .index-header {
    width: 100%;
    border-bottom: 1px solid #ddd;
    position: relative;
  }

  .index-header .weather {
    position: absolute;
    right: 15px;
    color: #fff;
    font-size: 10px;
    top: 15px;
    padding-right: 26px;
  }

  .index-header .weather span {
    display: block;
  }

  .index-header .weather .weather-icon {
    position: absolute;
    height: 24px;
    width: 24px;
    right: 0;
    top: 0;
  }

  .index-header .top-banner {
    width: 100%;
    height: 120px;
    background-color: rgb(0, 150, 255);
    position: relative;
    padding: 15px;
    box-sizing: border-box;
  }

  .index-header .address-box {
    font-size: 18px;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    color: #fff;
    margin-bottom: 20px;
  }

  .address-box .iconfont {
    font-size: 14px;
    color: #fff;
    display: inline-block;
    margin-right: 4px;
  }

  .index-header .search-box {
    height: 40px;
    width: 100%;
    border-radius: 40px;
    background: #fff;
    overflow: hidden;
    padding: 0 40px;
    box-sizing: border-box;
  }

  .index-header .search-box input {
    border: none;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 14px;
    outline: none;
  }

  .nav-bar-list {
    display: flex;
    width: 100%;
    height: 160px;
    background-color: #fff;
    flex-flow: row wrap;
    align-content: flex-start;
    font-size: 12px;
  }

  .nav-bar-list .nav-bar-list-item {
    box-sizing: border-box;
    flex: 0 0 25%;
    height: 80px;
    overflow: hidden;
    text-align: center;
    background-position: center 10px;
    background-repeat: no-repeat;
    background-size: 40px 40px;
    padding-top: 60px;
  }

  .content {
    width: 100%;
    background-color: #ddd;
  }

  .more {
    text-align: center;
    height: 20px;
    background-color: #f3f3ea;
    position: absolute;
    bottom: -30px;
    width: 100%;
  }

  .content .content-title {
    height: 20px;
    line-height: 20px;
    font-size: 14px;
    color: #666;
    background-color: #ddd;
    padding: 5px 0;
  }

  .content .content-title p {
    padding-left: 20px;
    border-left: 4px solid #fdad3a;
  }

</style>
